#include "Level.h"
#include <iostream>

Level::Level()
{
    //ctor
}

Level::~Level()
{
    //dtor
}

bool Level::Initialize()
{

    AddTileImage("../../resource/back.jpg",CVector(640,480));
    backImage = CreateLayer(CVector(640,480),CVector(1,1));
    backImage->SetBrick(CVector(0,0),0,0);

    layerScreen = CreateLayer(640,480);
    player = new Player();
    player->lifePoints = 1;
    player->playerLives = 3;
    layerScreen->AddSprite(player);

    enemyHorde = new Horde(layerScreen);
    enemyHorde->BringTheHorde();
    return true;
}

void Level::Execute()
{
    enemyHorde->Execute();
}

bool Level::Release()
{
    return true;
}
